<%@ taglib prefix="s" uri="/struts-tags"%>
<table class="table table-hover" style="cursor:pointer ">
	  <s:iterator value="%{list}"  id="id"   status="status">
		 <tr>
			 <td align="left" style="cursor: pointer" onclick="openNew('<s:property value="id"/>')" title='<s:property value="title"/>'>
				<s:if test="title.length()>18">
			         <s:property value="title.substring(0,18)+'...'" />
			    </s:if>
			    <s:else>
			         <s:property value="title" />
		        </s:else>
			 </td>
			 <td align="right">[<s:date name="createDate" format="yyyy-MM-dd"/>]</td>
		</tr>
	  </s:iterator>
	<tr>
		<td></td><td align="right"></td>
	</tr>
</table>
<script type="text/javascript">
	 	function openNew(id){
	 		window.location.href="<%=request.getContextPath()%>/contentAction!findContent.action?id="+id;
		 }
</script>